#include <tsinide/LineNumberArea.hpp>
#include <tsinide/CodeEditor.hpp>

#include <QtGui>

LineNumberArea::LineNumberArea(CodeEditor *editor)
        : QWidget(editor)
{
        codeEditor = editor;
}

LineNumberArea::~LineNumberArea()
{
}

QSize LineNumberArea::sizeHint() const
{
        return QSize(codeEditor->lineNumberAreaWidth(), 0);
}

void LineNumberArea::paintEvent(QPaintEvent *event)
{
        codeEditor->lineNumberAreaPaintEvent(event);
}
